

let IO = require('../src/functor/io');


let window = {
    width:800,
    height:600,
    location:'http://www.baidu.com',
    port:8080,
    href:""
};

let io_window = IO.of(window);
console.log(io_window.map(win=>win.width));


let io_win2 = new IO(function () {
    return window
});

console.log(io_win2.map(function (win) {
    return win.width;
}));
